<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	    <script src="./Public/jquery-1.12.2.min.js"></script>
	    <script type="text/javascript">
	    	$(function(){
	    		$('#delimg').click(function(){
	    			$('.img_box').html('<input type="file" name="logo" id="exampleInputEmail1" value="" />')
	    		})
	    	})
	    </script>
	</head>
	<body>
		<form action="" method="post" enctype="multipart/form-data">
			<div class="alert alert-success">编辑商品品牌</div>
			<div class="form-group">
				<label for="exampleInputEmail1">品牌名称</label>
				<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类名称"  name="bname" value="<?php echo $data['bname']?>">
			</div>
			<div class="form-group">
				<label for="exampleInputEmail1">品牌logo</label>
				<div class="img_box">
				<?php if($data['logo']){?>
                
					<img style="width: 200px;height: 86px;" src="<?php echo $data['logo']?>" alt="" />
					<button type="button" class="btn btn-danger" id="delimg">删除</button>
					<input type="hidden" name="logo" id="logo" value="<?php echo $data['logo']?>" />
				<?php }else{?>
				<input type="file" name="logo" id="exampleInputEmail1" value="" />
				
               <?php }?>
				</div>
			</div>
			<div class="form-group">
				<label for="">是否热门：</label>
				<label for="">是</label>
				<input type="radio" name="is_hot" id="is_hot" value="1" />
				<label for="">否</label>
				<input type="radio" name="is_hot" id="is_hot"  value="0"/>
			</div>
			<div class="form-group">
				<label for="exampleInputEmail1">品牌排序</label>
				<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类排序" name="bsort" value="<?php echo $data['bsort']?>">
			</div>
			<input type="hidden" name="bid" id="bid" value="<?php echo $data['bid']?>" />
			<button class="btn btn-primary btn-lg" type="submit">确定 </button>
		</form>
	</body>
</html>
